package com.lyf.scm.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * description:
 *           直营预测计划--执行 指标枚举
 * @author: haodong
 * @data: 2020/8/5 13:48
 */
public enum SalesPlanDirectlyExecuteEnum {

    /**
     * 历史销量
     */
    HISTORICAL_SALES_AMOUNT("historicalSalesAmount","实际销量"),
    /**
     * 实际差值
     */
    ACTUAL_DIFFERENCE("actualDifference","实际差值"),
    /**
     * 实际差值比例
     */
    ACTUAL_DIFFERENCE_RATE("actualDifferenceRate","实际差值比例"),
    /**
     * 预测销量
     */
    FORECAST_SALES_AMOUNT("forecastSalesAmount","预测销量"),
    /**
     * 预测差值
     */
    FORECAST_DIFFERENCE("forecastDifference","预测差值"),
    /**
     * 预测差值比例
     */
    FORECAST_DIFFERENCE_RATE("forecastDifferenceRate","预测差值比例");

    private String columns;
    private String desc;

    SalesPlanDirectlyExecuteEnum(String columns, String desc) {
        this.columns = columns;
        this.desc = desc;
    }
    /**
     * 指标的枚举顺序为excel导出时候指标的顺序
     *
     * @param
     * @return {@link List <String>}
     **/
    public static List<String> getAllTargetsDesc() {
        List<String> targetsDesc = new ArrayList<>();
        for (SalesPlanDirectlyExecuteEnum item : SalesPlanDirectlyExecuteEnum.values()) {
            targetsDesc.add(item.getDesc());
        }
        return targetsDesc;
    }
    public String getColumns() {
        return columns;
    }

    public void setColumns(String columns) {
        this.columns = columns;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
